#define layout()
#@_jsscss()
<title>地址编辑</title>
<style type="text/css">
	.w3000{
		margin-right: 50px;
	}
</style>
</head>
<body>
<div class="centerMain">
	    #for(x:WXADDLIST)
        <div class="mt10 ui-form" onclick='window.location.href="/wxorder/toAddOrder?appid=#(session.appid)&addid=#(x.id)"'>
            <div class="ui-form-item ui-border-b" style="line-height:24px;padding: 15px 16px;">
                <ul style="font-family: 微软雅黑;font-size: 16px;"><lable>#(x.name)</lable><lable style="padding-left: 20px;">#(x.phone)</lable></ul>
                <ul style="color:#999999;font-size: 16px;"><lable>#(x.pro)#(x.city)#(x.dis)#(x.address)</lable></ul>
                #if(session.BNORDER)
                <ul style="color:#999999;font-size: 16px;"><lable>身份证:#(x.define1)</lable></ul>
                #end
            </div>
        </div>
        <div class="ui-form" style="margin-top:1px;">
        	<div class="ui-form-item ui-border-b" style="line-height:20px;padding: 15px 16px;float:right;">
            	<img src="/wx/images/icon-edit.png" alt="alt" style="width:20px;vertical-align: bottom;margin-right: 4px;" title="title" /><lable style="line-height:20px;" onclick="window.location.href='/wxorder/toEditUserAdd?appid=#(session.appid)&state=3&addid=#(x.id)'">编辑</lable>
            	<img src="/wx/images/icon-delete.png" alt="alt" style="width:20px;vertical-align: bottom;margin-right: 4px;" title="title" /><lable style="line-height:20px;" onclick="window.location.href='/wxorder/deleteAdd?appid=#(session.appid)&state=3&addid=#(x.id)'">删除</lable>
            </div>
        		<div class="" style="padding: 15px 16px;line-height:20px;">
            	<li>
                <input #if(x.isdefault == "1")checked="true"#end tabindex="3" style="width:20px;vertical-align: middle;margin-right: 0px;"  type="radio" id="input-3" name="demo-radio" onclick="window.location.href='/wxorder/setDefaultAdd?appid=#(session.appid)&state=3&addid=#(x.id)'">设为默认
              </li>
            </div>
        </div>
        #end
        <div class="ui-btn-wrap mt20 ui-form">
            <input id="Submit1" type="button" class="ui-btn-lg ui-btn-success"  value="添加新地址" />
        </div>
</div>
<div class="clear"></div>
<script>
	$("#Submit1").bind("click",function(){
     window.location.href="/wxorder/toEditUserAdd?appid=#(session.appid)&state=2";
    });
</script>
</body>
</html>
#end
#@layout()
